import Vue from 'vue'
import { Lazyload, Loading, CellGroup, Tag, Divider, NavBar, Form, Field, Button, Tabbar, TabbarItem, Icon, Tab, Tabs, Cell, List, PullRefresh, ActionSheet, Popup, Row, Col, Badge, Search, Image as VanImage, Image, Dialog, DatetimePicker } from 'vant'

// 注册时设置`lazyComponent`选项
Vue.use(Lazyload, {
  preLoad: 0.8, // 屏幕高度的范围百分比
  loading: 'https://img95.699pic.com/photo/40048/4561.jpg_wh300.jpg',
  error: 'https://img1.baidu.com/it/u=1273778519,704700627&fm=253&app=138&size=w931&n=0&f=PNG&fmt=auto?sec=1656694800&t=9ff03c6c807221ba0a4dc083ddf9e312'
})
Vue.use(Loading)
Vue.use(DatetimePicker)
Vue.use(Dialog)
Vue.use(Image)
Vue.use(CellGroup)
Vue.use(Tag)
Vue.use(Divider)
Vue.use(VanImage)
Vue.use(Search)
Vue.use(Badge)
Vue.use(Row)
Vue.use(Col)
Vue.use(Popup)
Vue.use(ActionSheet)
Vue.use(PullRefresh)
Vue.use(List)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Tab)
Vue.use(Tabs)
Vue.use(Icon)
Vue.use(Tabbar)
Vue.use(TabbarItem)
Vue.use(Form)
Vue.use(Field)
Vue.use(Button)
Vue.use(NavBar)
